package com.maxi.chatdemo.db;

/**
 * Created by Mao Jiqing on 2016/10/15.
 */

import com.maxi.chatdemo.common.ChatConst;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

@Entity
public class ChatMessageBean {
    // 主键标识，使用@Id注解标记此字段为数据库中的主键
    private Long id;

    // 用户ID，使用@Property注解指定数据库中的列名为UserId
    private String UserId;

    // 用户名称，使用@Property注解指定数据库中的列名为UserName
    private String UserName;

    // 用户头像，使用@Property注解指定数据库中的列名为UserHeadIcon
    private String UserHeadIcon;

    // 用户内容，使用@Property注解指定数据库中的列名为UserContent
    private String UserContent;

    // 时间，使用@Property注解指定数据库中的列名为time
    private String time;

    // 类型，使用@Property注解指定数据库中的列名为type
    private int type;

    // 消息类型，使用@Property注解指定数据库中的列名为messagetype
    private int messagetype;

    // 用户语音时长，使用@Property注解指定数据库中的列名为UserVoiceTime
    private float UserVoiceTime;

    // 用户语音路径，使用@Property注解指定数据库中的列名为UserVoicePath
    private String UserVoicePath;

    // 用户语音URL，使用@Property注解指定数据库中的列名为UserVoiceUrl
    private String UserVoiceUrl;

    // 发送状态，使用@Property注解指定数据库中的列名为sendState，并使用@ChatConst.SendState注解限定发送状态的值范围
    private @ChatConst.SendState int sendState;

    // 图片URL，使用@Property注解指定数据库中的列名为imageUrl
    private String imageUrl;

    // 图标URL，使用@Property注解指定数据库中的列名为imageIconUrl
    private String imageIconUrl;

    // 图片本地路径，使用@Property注解指定数据库中的列名为imageLocal
    private String imageLocal;

    @Generated(hash = 1463432601)
    public ChatMessageBean(Long id, String UserId, String UserName,
                           String UserHeadIcon, String UserContent, String time, int type,
                           int messagetype, float UserVoiceTime, String UserVoicePath,
                           String UserVoiceUrl, int sendState, String imageUrl,
                           String imageIconUrl, String imageLocal) {
        this.id = id;
        this.UserId = UserId;
        this.UserName = UserName;
        this.UserHeadIcon = UserHeadIcon;
        this.UserContent = UserContent;
        this.time = time;
        this.type = type;
        this.messagetype = messagetype;
        this.UserVoiceTime = UserVoiceTime;
        this.UserVoicePath = UserVoicePath;
        this.UserVoiceUrl = UserVoiceUrl;
        this.sendState = sendState;
        this.imageUrl = imageUrl;
        this.imageIconUrl = imageIconUrl;
        this.imageLocal = imageLocal;
    }

    @Generated(hash = 1557449535)
    public ChatMessageBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return this.UserId;
    }

    public void setUserId(String UserId) {
        this.UserId = UserId;
    }

    public String getUserName() {
        return this.UserName;
    }

    public void setUserName(String UserName) {
        this.UserName = UserName;
    }

    public String getUserHeadIcon() {
        return this.UserHeadIcon;
    }

    public void setUserHeadIcon(String UserHeadIcon) {
        this.UserHeadIcon = UserHeadIcon;
    }

    public String getUserContent() {
        return this.UserContent;
    }

    public void setUserContent(String UserContent) {
        this.UserContent = UserContent;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getMessagetype() {
        return this.messagetype;
    }

    public void setMessagetype(int messagetype) {
        this.messagetype = messagetype;
    }

    public float getUserVoiceTime() {
        return this.UserVoiceTime;
    }

    public void setUserVoiceTime(float UserVoiceTime) {
        this.UserVoiceTime = UserVoiceTime;
    }

    public String getUserVoicePath() {
        return this.UserVoicePath;
    }

    public void setUserVoicePath(String UserVoicePath) {
        this.UserVoicePath = UserVoicePath;
    }

    public String getUserVoiceUrl() {
        return this.UserVoiceUrl;
    }

    public void setUserVoiceUrl(String UserVoiceUrl) {
        this.UserVoiceUrl = UserVoiceUrl;
    }

    public int getSendState() {
        return this.sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }

    public String getImageUrl() {
        return this.imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageIconUrl() {
        return this.imageIconUrl;
    }

    public void setImageIconUrl(String imageIconUrl) {
        this.imageIconUrl = imageIconUrl;
    }

    public String getImageLocal() {
        return this.imageLocal;
    }

    public void setImageLocal(String imageLocal) {
        this.imageLocal = imageLocal;
    }
}
